import request from '/@/utils/request'

// 获取redis信息
export const dbRedisInfo = (params?: any) => request.get('/setting/dbRedis/info', params);

// 获取缓存
export const dbRedisDetail = (params?: any) => request.get('/setting/dbRedis/detail', params);

// 编辑缓存
export const dbRedisEdit = (params?: any) => request.post('/setting/dbRedis/edit', params);

// 删除缓存
export const dbRedisDelete = (params?: any) => request.delete('/setting/dbRedis/delete', params);


// 获取表列表
export const dbMysqlLists = (params?: any) => request.get('/setting/dbMysql/lists', params);

// 获取表详情
export const dbMysqlDetail = (params?: any) => request.get('/setting/dbMysql/detail', params);

// 优化表
export const dbMysqlOptimize = (params?: any) => request.post('/setting/dbMysql/optimize', params);

// 清理表
export const dbMysqlFragment = (params?: any) => request.delete('/setting/dbMysql/fragment', params);

